package com.lazybones.base.engineer.service.google;

import jakarta.servlet.http.HttpServletResponse;

public interface IGoogleAuthenticatorService {
    /**
     * 生成密钥
     *
     */
    String getGoogleSecretKey();
    /**
     * 生成二维码,app直接扫描绑定,两种方式
     *
     */
    void getGoogleQrcode(String name, HttpServletResponse response);
    /**
     * 获取code
     *
     */
    String getGoogleCode(String secretKey);
    /**
     * 验证code 是否正确
     */
    Boolean checkGoogleCode(String secretKey,String code);
}
